convert object to iqueryable in c#

87

convert object to iqueryable in c# -

public static class ObjectExtensionMethods
{
    public static IQueryable<T> ToQueryable<T>(this T instance)
    {
        return new [] {instance}.AsQueryable();
    }
}

Comments

Submit
0 Comments